//
//  LiveHandle.h
//  BasketballClub
//
//  Created by lanou3g on 16/1/6.
//  Copyright © 2016年 孙鸿吉. All rights reserved.
//

#import <Foundation/Foundation.h>
//定义一个回调的block
typedef void(^LIVEBLOCK)(BOOL isFinished);
@interface LiveHandle : NSObject
///接收解析出来的数据
@property(nonatomic,strong)NSMutableArray *liveYesterdayDataArray;
///接收解析出来的数据
@property(nonatomic,strong)NSMutableArray *liveTodayDataArray;
///接收解析出来的数据
@property(nonatomic,strong)NSMutableArray *liveTomorrowDataArray;
///接收传过来的字符串
@property(nonatomic,strong)NSString *urlStr;
///接收解析出来的数据
@property(nonatomic,strong)NSArray *battleDetailsArray;;


///单例方法
+(instancetype)sharedLiveHandle;

#pragma mark  -   解析数据的方法
///获取昨日比赛数据并回调
-(void)GetYesterdayDataFromNetWorkWithBlock:(LIVEBLOCK)finishBlock;
///获取今日比赛数据并回调
-(void)GetTodayDataFromNetWorkWithBlock:(LIVEBLOCK)finishBlock;
///获取明日比赛数据并回调
-(void)GetTomorrowDataFromNetWorkWithBlock:(LIVEBLOCK)finishBlock;
///请求数据
-(void)getDataFromNetWorkWithBlock:(LIVEBLOCK)finishBlock;


-(void)getDataFromNetWorkWithUrlStr:(NSString*)urlString withBlock:(LIVEBLOCK)finishBlock;

@end
